<%-- 
    Document   : index
    Created on : Feb 28, 2012, 10:05:57 PM
    Author     : An
--%>
<%@page import="java.util.ArrayList"%>
<%@page import="Pojo.DapandaCheckPojo"%>
<%@page import="sun.print.BackgroundLookupListener"%>
<%@page import="java.util.List"%>
<%@page import="Pojo.CauHoi"%>
<%@taglib  uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="js/jquery/jquery.ui.all.css"/>
    <script language="javascript">
        
        <%
            if(Integer.parseInt(session.getAttribute("login").toString()) != 0){%>
                KiemTraDangNhap();
        <%}%>
        function KiemTraDangNhap(){
            alert("Username hoặc Password không chính xác!");
        }
        function KiemTra()
        {
            var frm = document.getElementById("frmLogin");

            var loi = "";

            if(frm.username.value == "")
            {
                    loi +=  "Chưa điên thông tin cho Username! \n"; 	
            }
            if(frm.password.value=="")
            {
                loi += "Chưa nhập thông tin Password! \n";
            }
            if(loi != "")
                alert(loi);
            return loi;
        }
        function DangNhap(){
            if(KiemTra()==""){
                var frm = document.getElementById("frmLogin");
                frm.submit();
            }
        
                
    
    }
     </script>
    <title>Trắc nghiệm Online</title>
</head>
<body>
    <div id="wapper">
        <div id="header">
            <embed style="width:995px;height:140px;" src="images/banner.gif" wmode="transparent"></embed>
        </div><!--end header-->
        <%
            String flag = session.getAttribute("flag").toString();
         %>
        <div id="menu">
            <div id="tabs">
                <ul>
                    <li><a href="homecontroller?Action=View"><span>Trang Chủ</span></a></li>
                    <%
                        if(session.getAttribute("username_") == null){
                    %>
                    <li><a href="Dienthongtin_Vabatdauthicontroller?Action=View"><span>Thi trắc nghiệm</span></a></li>
                    <%}else{%>
                    <li><a href="Dienthongtin_Vabatdauthicontroller?Action=tieptucthi"><span>Thi trắc nghiệm</span></a></li>
                    <%}%>
                    <li><a href="ThiSinhTraCuuKetQuaThicontroller?Action=View<%if(session.getAttribute("cmnd") == null){%>&cmnd=<%= session.getAttribute("cmnd") %><%}%>"><span>Tra cứu kết quả thi</span></a></li>
                    <li><a href="Trangtuyensinhcontroller?Action=View"><span>Tuyển sinh</span></a></li>
                     <li><a href=""><span>Kiến thức</span></a></li>
                    <li><a href=""><span>Tin Tức</span></a></li>
                    <li><a href=""><span>Liên Hệ</span></a></li>
                </ul>
            </div><!--end header-->
        </div><!--end menu-->
        
        <div id="containe">
            <div>
            <div class="left">
                
                <%
                    if(flag.equals("0")){%>
                        <!--ĐĂNG NHẬP-->
               
                            <div class="top_left"></div>
                            <form name="frmLogin" id="frmLogin" method="post" action="Dangnhapcontroller?Action=Dangnhap">
                                 <div class="body_left">
                                     <div style="height: 4px"></div>
                                    <div style="margin-left: 60px;font-size:15px;font-weight: bold;color: #000000">ĐĂNG NHẬP</div>
                                    <div style ="height: 5px"></div>

                                    <div>
                                        <b style="margin-left: 18px">Username: </b>
                                        <input style="background-color: white;margin-left: 4px;height: 17px;width: 100px" type="text" name="username" value="" id="username"/>
                                    </div>
                                    <div style ="height: 10px"></div>
                                    <div>
                                        <b style="margin-left: 18px">Password: </b>
                                        <input style="background-color: white;margin-left: 5px;height: 17px;width: 100px" type="password" name="password" value="" id="password"/>
                                    </div>
                                    <div style="height: 15px"></div>
                                    <div>
                                        <input style="margin-left: 100px;height: 25px;width: 90px" type="submit" value="Đăng Nhập" name="dangnhap" onclick="DangNhap()"/>
                                    </div>
                                    <div style="height: 4px"></div>
                                </div><!--end body_left-->
                            </form>
                            <div class="bottom_left"></div>
                            <div class="ngancach"></div>

                            <!--KẾT THÚC ĐĂNG NHẬP-->
                    <%}else{%>
                        <%
                            String username =  session.getAttribute("username_").toString();
                        %>
                        <div class="top_left"></div>
                        <div class="body_left"> 
                            <div style="margin-left: 32px"><b style="font-size: 13px;font-weight: bold;color: #000000">THÔNG TIN THÀNH VIÊN</b></div> 
                            <div class='color' style = 'padding:0px 0px 0px 20px; line-height:25px;'>
                                     <span style="color: #000000; font-weight: bold"> Xin chào:</span>
                                     <span style="color: white;font-weight: bold;font-size: 15px; margin-left: 5px"> <%= username%></span>
                                     <img style="margin-top: 2px" src='images/41.gif' border='0'  />
                                     <b style="color:Yellow" id = "dynamichello" runat="server"></b>
                                     <div style="height: 5px"></div>
                                     <a style="font-size: 16px;color: blue;font-weight: bold;margin-left: 95px" href="Logoutcontroller">Thoát</a>
                                     <img style="margin-top: 2px;margin-left: 5px" src='images/103.gif' border='0'  />
                                     <div align='left'>
                                     </div>
                              </div>
                        </div><!--end body_left-->
                        <div class="bottom_left"></div>
                        <div class="ngancach"></div>

                    <%}%>
             
                <div class="top_left"></div>
                <div class="body_left">
                    <div style="margin-left: 42px;font-size:15px;font-weight: bold;color: #000000">QUY CHẾ THI 2011</div>
                    <div style ="height: 5px"></div>
                    <div style="margin-left: 52px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Quy chế thi 2008</a></div>
                    <div style="margin-left: 52px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Quy chế thi 2009</a></div>
                    <div style="margin-left: 52px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Quy chế thi 2010</a></div>
                    <div style="margin-left: 52px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Quy chế thi 2011</a></div>
                    <div style="margin-left: 52px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Quy chế thi 2012</a></div>
                    
                </div><!--end body_left-->
                <div class="bottom_left"></div>
                
                <div class="ngancach"></div>
                
                <div class="top_left"></div>
                <div class="body_left">
                    <div style="margin-left: 32px;font-size:14px;font-size: 15px;font-weight: bold;color: #000000">ĐỀ THI - ĐÁP ÁN 2011</div>
                    <div style ="height: 5px"></div>
                    <div style="margin-left: 42px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Đề thi - Đáp án 2008</a></div>
                    <div style="margin-left: 42px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Đề thi - Đáp án 2009</a></div>
                    <div style="margin-left: 42px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Đề thi - Đáp án 2010</a></div>
                    <div style="margin-left: 42px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Đề thi - Đáp án 2011</a></div>
                    <div style="margin-left: 42px; font-size: 13px; color: mediumblue"><a href="" style="text-decoration: none">Đề thi - Đáp án 2012</a></div>
                </div><!--end body_left-->
                <div class="bottom_left"></div>
                
            </div><!--end left-->
            
            <div class="right">
                <div class="top_tickit"></div>
                <div class="body_tickit_body">
                    
                    <tiles:insertAttribute name="Content" />
                    <div style="height: 1px"></div> 
                </div>
                
                <div style="height: 20px"></div>
                <div id="footer" style="float: right">
                    <tiles:insertAttribute name="footer" />
                </div>
            </div><!--end right-->
            
            </div>
                
        </div><!--end containe-->
       <!--<div style="clear: both;height: 1000px"></div>-->
                
    </div> <!--end wapper-->

</body>
</html>